import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../services/http-client.service';
@Injectable()
export class UserControlService {

	constructor(
		public httpClient: HttpClientService
	) { }
	//用户分页列表
	getUserList(getBody){
		return this.httpClient.get('/pms/v1/common/user/userListPage', getBody);
	}
	/**
	 * 新增用户数据
	 */
	addUser(postBody){
        return this.httpClient.post('/pms/v1/common/user/user',postBody);
	}
	/**
	 * 编辑用户数据
	 */
	editUser(putBody){
        return this.httpClient.put('/pms/v1/common/user/user',putBody);
	}
	/**
	 * 删除单个用户数据
	 * @param sUsername 
	 */
	delUser(sUsername){
		return this.httpClient.put('/pms/v1/common/user/userDel/'+sUsername);
	}
}
